/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.upc.dew.sisrest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.edu.upc.dew.sisrest.dao.LocalDao;
import pe.edu.upc.dew.sisrest.model.Local;
import pe.edu.upc.dew.sisrest.service.LocalManager;

/**
 *
 * @author Aldo
 */
@Service
public class LocalManagerImpl implements LocalManager{

    @Autowired
    LocalDao localDao;

    @Override
    public List<Local> obtenerLocales() {
        return localDao.obtenerLocales();
    }

    @Override
    public Local obtenerLocal(String sId) {
        return localDao.obtenerLocal(sId);
    }

    @Override
    public void grabarLocal(Local objLocal) {
        localDao.grabarLocal(objLocal);
    }

    @Override
    public void eliminarLocal(String sId) {
        localDao.eliminarLocal(sId);
    }
}